package com.spark.userservice.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.basecommon.entity.user.UmsRole;
import com.spark.userservice.mapper.UmsRoleMapper;
import com.spark.userservice.service.IUmsRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 * 后台用户角色表 服务实现类
 * </p>
 *
 * @author fuqiang
 * @since 2020-09-29
 */
@Service
public class UmsRoleServiceImpl extends ServiceImpl<UmsRoleMapper, UmsRole> implements IUmsRoleService {

    @Autowired
    private UmsRoleMapper umsRoleMapper;

    @Override
    public Set<UmsRole> findRolesByUserId(Long id) {
        return umsRoleMapper.findRolesByUserId(id);
    }
}
